import $axios from './api.js'

//登录
export  const login = data =>{
   return $axios({
        url:'/login',
        method:'post',
        data:data
    })
}
//注册
export const register = data =>{
    return $axios({
        url:'/register',
        method:'post',
        data:data
    })
}

//编辑用户信息
export const updatauser = data =>{
    return $axios({
        url:'/updatauser',
        method:'post',
        data:data
    })
}
//发布任务
export const Taskinfo = data =>{
    return $axios({
        url:'/Taskinfo',
        method:'post',
        data:data
    })
}
export const delTask = data =>{
    return $axios({
        url:'/delTask',
        method:'post',
        data:data
    })
}
//请求任务列表
export const reqTask = data =>{
    return $axios({
        url:'/reqTask',
        method:'post',
        data:data
    })
}
//接取任务
export const applicants = data =>{
    return $axios({
        url:'/applicants',
        method:'post',
        data:data
    })
}
//请求我的订单
export const Myorder = data =>{
    return $axios({
        url:'/Myorder',
        method:'post',
        data:data
    })
}
//完成任务
export const successtask = data =>{
    return $axios({
        url:'/successtask',
        method:'post',
        data:data
    })
}